﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_Paper : ManagePageBase {
    int id = 0;
    protected Exam.Core.Model.ExamPaper model = new Exam.Core.Model.ExamPaper();
    protected void Page_Load(object sender, EventArgs e) {
        if(Request.QueryString["id"]!=null&&Request.QueryString["id"]!=""){
            if(!int.TryParse(Request.QueryString["id"].Trim(),out id)){
                Response.Write("发生错误!");
                Response.End();
            }
        }
        if(!IsPostBack){
            getPaper();
        }
    }

    private void getPaper() {
        model = new Exam.Core.DAL.Paper().getPaperById(id);
    }
}
